package com.probiz.estore.eai.order;

import org.xml.sax.SAXException;

import com.probiz.estore.eai.common.GenericUnmarshaller;
import com.probiz.estore.eai.order.generated.Saleorder;
import com.probiz.estore.eai.order.generated.SaleorderSet;

public class OrderUnmarshaller extends GenericUnmarshaller<SaleorderSet>  {

	@Override
	public void startUnmarshal() throws Exception {
		SaleorderSet orderSet = this.getEntitySet();
		for(Saleorder saleorder : orderSet.getSaleorder()){
			System.out.println("order id:"+saleorder.getHeader().getId());
		}
		
		
	}
	
	@Override
	protected String getTargetXmlFilePath(){
		//得到eai.properties文件中相关的路径配置
		return eaiUtil.getConfig( "saleorder.importXmlFile");
	}
	
	
}
